package com.f5.management.service;

import com.f5.management.entity.Community;
import com.f5.management.entity.Equipment;
import com.f5.management.utils.PageResult;

import java.text.ParseException;
import java.util.List;

public interface EquipmentService {
    //添加
    boolean add(Equipment equipment) throws ParseException;


    //分页查询数据
    PageResult<List<Equipment>> findByPage(int page, int size);

    Integer findCidByName(String communityName);

    Equipment findById(int id);

    boolean updateInfo(Equipment equipment);

    boolean delInfo(int id);

//    //更改信息
//    boolean updateInfo(Equipment equipment);
//
//    //删除信息
//    boolean delInfo(int id);

    //查询
//    PageResult<List<Equipment>> findByName(String name, int page, int size);
}
